<template>
  <div class="person_homeView">
    <el-card :shadow="shadowShow" class="partner_inner" />
  </div>
</template>

<script>
export default {
  name: 'Home',

  data() {
    return {
      form: {
        username: '',
        realName: '',
        mobile: '',
        email: '',
        wechatNo: '',
        roleId: '', // 角色
      },
      page: 1, // 默认第1页
      limit: 10, // 每页条数
      total: 0, // 总条数
      tableData: [],
      dialogVisible: false,
      radio: 1,
      options: [
        {
          value: '选项1',
          label: '黄金糕',
        },
        {
          value: '选项2',
          label: '双皮奶',
        },
      ],
      value: '',
      title: this.$t('add.add54'),
      roleList: [],
      isDisabled: false,
    };
  },

  created() {
    this.getList();
  },

  methods: {
    // 拿所有数据
    getList() {
      this.$http
        .get(`/sys/user/page?page=${this.page}&limit=${this.limit}&systemType=0`)
        .then(({ data: res }) => {
          if (res.code !== 0) {
            return this.$message.error(res.msg);
          } else {
            this.tableData = res.data.list;
            this.total = res.data.total;
          }
        })
        .catch((err) => {
          console.log('err', err);
        });
    },
  },
};
</script>

<style lang="scss">
.person_homeView {
  height: 100%;

  .el-header {
    color: #333;
  }

  .el-aside {
    background-color: transparent;
    // color: #333;
    text-align: center;

    // padding-left: 12px;
    // line-height: 200px;
    .el-menu {
      border: none;
    }
  }

  .el-main {
    background-color: #f8f8f8;
    // color: #333;
    text-align: left;
    padding: 10px !important;
  }

  .el-container {
    height: 100%;
  }

  .nav_back {
    margin-top: 15px;
    padding-left: 5px;

    .title {
      font-size: 14px;
      font-weight: 400;
      line-height: 22px;
      color: #4884e5;
    }
  }
}

.el-menu-item.is-active {
  background-color: #e6ecf0 !important;
}

.partner_inner {
  margin-top: 20px;
}
</style>
